<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><%= @title %></title>
    <%= stylesheet_link_tag 'blueprint/blueprint/screen.css' %>
    <%= stylesheet_link_tag 'blueprint/blueprint/print.css', :media => 'print' %>
    <%= stylesheet_link_tag 'application' %>
    <%= stylesheet_link_tag 'theme/ui.all.css' %>

    <!--[if IE]>
<%= stylesheet_link_tag 'blueprint/blueprint/ie' %>
    <![endif]-->
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag 'ui.datepicker.js' %>
  </head>
  <body>
    <div id="top_menu"><span class="text">Welcome, <%= current_user.login %> | <%= link_to 'Logout', :controller => 'account', :action => 'logout' %>  </span></div>
    <div class="container rounded">
      <h2><%= @main_header %></h2>
      <div class='column span-18' id='tab-set'>
        <%= generate_top_menu(controller.controller_name, @project) %>
      </div>
      <div  class='column span-6 last' id='search'>
        <% form_tag({:controller => 'search'}, :method => 'get' ) do -%>
          <%= text_field_tag 'q', 'Search...', :class => 'search', :id => 'search_input', :onclick => "this.value = ''" %>
        <% end %>
      </div>

      <%= display_messages_for_all "notice" %>
      <%= yield %>

      <div class="clearBoth"></div>
    </div>
    <div id="footer">
      <span>SWE 574 &copy; 2009 by Group 2 </span>
    </div>
  </body>
</html>
